ci: Store the logs on build failure
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 1 Mar 2018 10:09:22 +0000 (17:09 +0700)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 1 Mar 2018 10:09:22 +0000 (17:09 +0700)
We should save the logs directory when the CI pipeline fails, so that we
have a chance at debugging the failure.

.gitlab-ci.yml

index 0d559ef3cb63cbd3952239fe33f58da71f53a18b..d2469d1aaf4de8574b8987c7535049bcfe69b261 100644 (file)
@@ -20,4 +20,9 @@ cache:
 build:
   stage: build
   script:
-   - bash -x ./.gitlab-ci/test-docker.sh
+    - bash -x ./.gitlab-ci/test-docker.sh
+  artifacts:
+    when: on_failure
+    name: "gtk-${CI_COMMIT_REF_NAME}"
+    paths:
+      - "${CI_PROJECT_DIR}/_build_full/meson-logs"